<?php

require_once 'St/Db/Table.php';
class UserModel extends St_Db_Table {

    protected $_name = "user";
    
    public function checkExist($field, $fieldValue){
        $db = $this->_db;
        $select = $db->select()
                ->from(array('u' => 'user'))
                ->where("$field = '$fieldValue'")
        ;
        return $result = $db->fetchRow($select);
    }
    
}